<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="js/jquery-1.12.4.min.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			ul {
				list-style: none
			}
			
			* {
				margin: 0;
				padding: 0;
			}
			
			div {
				width: 1200px;
				height: 400px;
				margin: 50px auto;
				border: 1px solid red;
				overflow: hidden;
			}
			
			div li {
				width: 240px;
				height: 400px;
				float: left;
			}
			
			div ul {
				width: 1300px;
			}
			
		</style>
		<script type="text/javascript">
			$(function(){
				$('li').mouseenter(function(){
					$(this).css("width","1100px").siblings().css("width","25px")
				})
				$("li").mouseleave(function(){
					$("li").css("width","240px")
				})
				
			})
		</script>
	</head>
	<body>
		<div id="box">
			<ul>
				<li><img src="img/1.jpg" /></li>
				<li><img src="img/2.jpg" /></li>
				<li><img src="img/3.jpg" /></li>
				<li><img src="img/4.jpg" /></li>
				<li><img src="img/5.jpg" /></li>
			</ul>
		</div>
	</body>
</html>
